<!DOCTYPE html>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>ajaxTXT</title>
        <script src="../style/js/jquery.js"></script>
        <script src="../style/js/bt.dwz.js"></script>
    </head>
<script>
    function a(str) {
            alert("接收:"+str);
    }
    function b(str) {
        alert("发送:"+str);
    }
</script>
    <body>
       
    <div style="margin-top: 15px;">txt类型: <form id="myForm1" class="form-inline bs-docs-example" action="test.txt" beforeSubmit="b(resque)" actionTo="#" dataType="text" callback="a(respon);" method="post"><div>
                       
                        <input type="text" name="text"  placeholder="姓名 ">

						<button type="submit" class="btn">txt</button>
                </div></form>
       </div>
         
    </body>
</html>
